ObjGen Template File Syntax (OTF)
ObjGen 2.0 now supports code generation via code templates. We have defined a simple yet powerful template syntax which allows the user to call in to our internal objects and to manipulate the code generation flow and process.
Here are the rules that are applied to all text contained within an ObjGen code template file and processed by the code generator:
1. All text that is not enclosed within the ObjGen OTF control character '%' is generated as is.
2. Any text that is enclosed within a pair of control characters is evaluated either as a keyword, internal object call or variable reference and treated as an OTF statement.
3. Any text that is enclosed within the control character and does not represent a keyword, internal object call or variable reference will be generated as is, including the control characters.
4. All new lines in the source code template are generated as is with the exception of new lines that follow any OTF statement.
OTF Statements
The following list represents keywords that are defined by the OTF syntax. Note that all OTF statements must be enclosed within the OTF control character '%'. Click on each statement for more information.
create
define
if, elseif, else, endif
iterate
rem
stop
OTF Object Types
The OTF syntax exposes ObjGen's internal objects through a callable interface. Each major object type is represented. Calls made on the objects use a familiar dot calling convention. Objects are callable from an ObjGen template only when they are in scope. You may not call a Window object from within a Class object template for example.
The following list represents each object type that supports a callable interface in the OTF syntax.Click on each object type for more information and exposed property calls.
PROJECT
APPLICATION
CLASS
FORM
MODULE
WINDOW